package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.admin.Admin;
import com.cskaoyan.mall.model.ChangePwd;

import java.util.List;

/**
 * @author: jyf2000jyf
 */
public interface AdminDao {
    /**
     * @param admin
     * @return code的值如果是200表示的是登录成功；404表示的是登录失败，用户名、密码错误；500表示的是服务器繁忙
     */
    int login(Admin admin);

    List<Admin> getAllAdmins();

    boolean deleteAdmins(int id);

    Admin getAdminsInfo(int id);

    boolean updateAdminss(Admin admin);

    List<Admin> getSearchAdmins(Admin admin);

    boolean addAdminss(Admin admin);

    String changePwd(ChangePwd pwd);
}
